package com.itheima.继承入门_02;

public class Fu {
    private String name = "灭霸";
    int age = 250;
    protected String id = "一半一半";
    public String ability = "打响指";

    public String getName() {
        return name;
    }

    public void setName(int age) {
        this.name = name;
    }
}

class Zi extends Fu{


     void show(){
        //System.out.println(name);
        System.out.println(getName());
        System.out.println(age);
        System.out.println(ability);
        System.out.println(id);
    }


}
